home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 37 / Amiga Format CD37 (1999-02-16)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-03].iso / -screenplay- / shareware / invasionforce / source / includes / game_play_protos.h < prev    next >
C/C++ Source or Header  |  1999-01-09  |  4KB  |  176 lines

  1. /* Prototypes for functions defined in
  2. game_play.c
  3.  */
  4.  
  5. extern int control_flag;
  6.  
  7. extern char game_filepath[108];
  8.  
  9. extern char game_filename[108];
  10.  
  11. extern struct Menu * move_menu_strip;
  12.  
  13. extern struct Menu * vey_menu_strip;
  14.  
  15. extern struct Menu * prod_menu_strip;
  16.  
  17. extern struct PLayer roster[9];
  18.  
  19. extern int player;
  20.  
  21. extern int turn;
  22.  
  23. extern BOOL display;
  24.  
  25. extern int cursx;
  26.  
  27. extern int cursy;
  28.  
  29. extern char id_filetag[5];
  30.  
  31. extern struct MinList unit_list;
  32.  
  33. extern struct BattleRecord battle;
  34.  
  35. extern char * prefix;
  36.  
  37. void set_display_offsets(int col,
  38.                          int row);
  39.  
  40. int count_units_at(int col,
  41.                    int row);
  42.  
  43. void add_city_to_player_map(int player,
  44.                             struct City * metro);
  45.  
  46. void add_icon_to_player_map(int player,
  47.                             struct Unit * unit);
  48.  
  49. BOOL seenby_subP(int player,
  50.                  struct Unit * targ);
  51.  
  52. BOOL sub_seenP(int player,
  53.                struct Unit * sub);
  54.  
  55. void recon(struct City * metro);
  56.  
  57. void explore_hex(int player,
  58.                  int col,
  59.                  int row,
  60.                  int visible,
  61.                  int forced);
  62.  
  63. void explore_at_hex(int player,
  64.                     int col,
  65.                     int row,
  66.                     int visible,
  67.                     int forced);
  68.  
  69. void conquer_city(struct City * taken_city);
  70.  
  71. int hex_owner(int col,
  72.               int row);
  73.  
  74. struct Unit * choose_defender(struct Unit * attacker,
  75.                               int targx,
  76.                               int targy);
  77.  
  78. int attack_hex(struct Unit * attacker,
  79.                 int targx,
  80.                 int targy);
  81.  
  82. void jumpstart_player(void);
  83. void create_initial_city(void);
  84.  
  85. void unit_name_request(struct City * metro,
  86.                        struct Unit * unit);
  87.  
  88. int do_cities_production(void);
  89.  
  90. void unit_status_bar(struct Unit * unit);
  91.  
  92. void hex_status_bar(int col,
  93.                     int row);
  94.  
  95. BOOL board_ship(struct Unit * cargo,
  96.                 int col,
  97.                 int row);
  98.  
  99. int cargo_capacity(struct Unit * ship);
  100.  
  101. void load_ship(struct Unit * ship);
  102.  
  103. void move_unit_dir(struct Unit * unit,
  104.                    enum Direction dir);
  105.  
  106. void move_unit_xy(struct Unit * unit,
  107.                   int targx,
  108.                   int targy);
  109.  
  110. int speed_of(struct Unit * unit);
  111.  
  112. void build_move_menu(void);
  113.  
  114. void build_survey_menu(void);
  115.  
  116. void build_production_menu(void);
  117.  
  118. void give_orders(struct Unit * unit,
  119.                  int token,
  120.                  int destx,
  121.                  int desty,
  122.                  int etc);
  123.  
  124. struct Unit * shuffle_units(struct Unit * topunit,
  125.                             BOOL survey);
  126.  
  127. void start_blinking_unit(struct Unit * unit);
  128.  
  129. void movement_mode(struct Unit ** current_unit);
  130.  
  131. void plot_cursor(int x,
  132.                  int y);
  133.  
  134. void move_cursor_dir(int dir);
  135.  
  136. void survey_mode(struct Unit ** current_unit);
  137.  
  138. void production_mode(void);
  139.  
  140. void survey_hex(int col,
  141.                 int row);
  142.  
  143. struct Unit * choose_default_unit(struct Unit * exclude);
  144.  
  145. int unit_readiness(struct Unit * unit);
  146.  
  147. void order_manager(struct Unit * unit);
  148.  
  149. void mode_manager(void);
  150.  
  151. int unit_speed(struct Unit * unit);
  152.  
  153. void create_player_display(int col,
  154.                            int row);
  155.  
  156. void weed_combat_report(void);
  157.  
  158. BOOL save_game(char * filename);
  159.  
  160. BOOL load_game(char * filename);
  161.  
  162. void build_pan(char * string,
  163.                char * path,
  164.                char * file);
  165.  
  166. BOOL rt_loadsave_game(int save);
  167.  
  168. void execute_game_turns(void);
  169.  
  170. void cleanup_game(void);
  171.  
  172. void play_game(void);
  173.  
  174. void restore_game(void);
  175.  
  176.